{literal}
<script type="text/javascript">
$(document).ready(function(){
    
	{/literal}
    addDatePickerTime("#testAssignDesktop{$ticketId}_dd",'#testAssignDesktop{$ticketId}_mm','#testAssignDesktop{$ticketId}_yyyy','#testAssignDesktopTime{$ticketId}',false,false,true);
    {literal}

   
    $("#testAssignGroupsOfTest{/literal}{$ticketId}{literal}").treeview({
    	animated: "fast",
    	collapsed: true,
    	unique: false,
    	toggle: function() {    	 
    	}
   });


    $("#selectTest{/literal}{$ticketId}{literal}").bind('click',function(){
    	{/literal}
    	moveItem('testAssignTestOfGroup{$ticketId}',
    			'testAssignAssignedTest{$ticketId}');
    	{literal}
        
   });

    $("#unSelectTest{/literal}{$ticketId}{literal}").bind('click',function(){
        {/literal}
        moveItem('testAssignAssignedTest{$ticketId}',
                'testAssignTestOfGroup{$ticketId}'
                );
        
        {literal}
        
   });

    
    

    
    
    
})
</script>
{/literal}
<div id="testAssignTop" ><span
	id="statusMessageTestAssignDesktop{$ticketId}"></span>
<table class="grid inline">
	<tr>
		<td class="label">{translate}Doctor{/translate}:</td>
		<td colspan="3"><select style="width: 100%"
			id="testAssignDesktopDoctorName{$ticketId}">
			<option id="empty" value="0">{translate}Select doctor{/translate}</option>
			{html_options options=$doctorList}
		</select></td>
		<td></td>
	</tr>
	<tr>
		<td class="label">{translate}Requested time{/translate}:</td>
		<td><input onkeypress="return allowEnterIntegerNum(event,true)"
			name="testAssignDesktop{$ticketId}_{$datePart_0}"
			id="testAssignDesktop{$ticketId}_{$datePart_0}" type="text" value=""
			style="width: 21px;"><span class="label">-</span><input
			onkeypress="return allowEnterIntegerNum(event,true)"
			name="testAssignDesktop{$ticketId}_{$datePart_1}"
			id="testAssignDesktop{$ticketId}_{$datePart_1}" type="text" value=""
			style="width: 21px;"><span class="label">-</span><input
			onkeypress="return allowEnterIntegerNum(event,true)"
			name="testAssignDesktop{$ticketId}_{$datePart_2}"
			id="testAssignDesktop{$ticketId}_{$datePart_2}" type="text" value=""
			style="width: 40px;"> <input
			name="testAssignDesktopTime{$ticketId}" type="text"
			id="testAssignDesktopTime{$ticketId}" style="width: 40px;"> <br />
		<span class="label" style="width: 21px; color: #AAA;">({$datePart_0}-{$datePart_1}-{$datePart_2}
		hh:mi)</span></td>

	</tr>
	<tr>
		<td class="label">{translate}Diagnosis{/translate}:</td>
		<td rowspan="2"><textarea rows="2" cols="1" style="width: 100%;"
			id="testAssignDesktopDiagnosis{$ticketId}"></textarea></td>
	</tr>
</table>
</div>
<div style="width: 100%; ">
<table class="grid inline">
	<tr>
		<td class="label" width="190px">{translate}Test{/translate}</td>
		<td class="label" width="170px">{translate}Test detail{/translate}</td>
		<td width="30px"></td>
		<td class="label" width="170px">{translate}Assigned tests{/translate}</td>
	</tr>
	<tr>
		<td>
		<div style="height: 200px; overflow: auto; width: 180px;">
		<ul id="testAssignGroupsOfTest{$ticketId}">
			{$htmlListGroupOfTest}
		</ul>
		</div>
		</td>
		<td><select style="width: 170px"
            id="testAssignTestOfGroup{$ticketId}" size="15" multiple="multiple"></select>
        </td>
        <td><input id="selectTest{$ticketId}" style="width: 25px;"
            type="button" value="&gt;&gt;">
            <br>
            <br>
        <input id="unSelectTest{$ticketId}" style="width: 25px;"
            type="button" value="&lt;&lt;">
        </td>
        <td><select style="width: 170px"
            id="testAssignAssignedTest{$ticketId}" size="15" multiple="multiple">
        </select></td>
	</tr>
</table>
</div>


